<template>
  <div>
    <h3>底部组件--> {{count}}</h3>
    <button @click="fn">点击修改</button>
  </div>
</template>
<script setup>
import {inject} from "vue";
const count = inject('count')
const changeCount=inject('changeCount')
const fn = ()=>{
  changeCount(1000)
}
</script>
<style scoped lang="less">

</style>
